<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<title>Submit to Pay@All</title>

<form:form name="formPayatAll" id="formPayatAll"
	action="${payAtAllAction}" method="POST" modelAttribute="outboundMessageLogBean"
	acceptCharset="UTF-8">

	<table style="display: none">
		<tr>
			<td><form:label path="serviceid">serviceid</form:label></td>
			<td><form:input path="serviceid" id="serviceid" maxlength="100"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="mid">mid</form:label></td>
			<td><form:input path="mid" id="mid" cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="inv">inv</form:label></td>
			<td><form:input path="inv" id="inv" cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="desp">desp</form:label></td>
			<td><form:input path="desp" id="desp" cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="amt">amt</form:label></td>
			<td><form:input path="amt" id="amt" cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="Currency_code">Currency_code</form:label></td>
			<td><form:input path="Currency_code" id="Currency_code"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="serviceid">serviceid</form:label></td>
			<td><form:input path="serviceid" id="serviceid"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="language">language</form:label></td>
			<td><form:input path="language" id="language"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="customer_name">customer_name</form:label></td>
			<td><form:input path="customer_name" id="customer_name"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="customer_email">customer_email</form:label></td>
			<td><form:input path="customer_email" id="customer_email"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="customer_phone">customer_phone</form:label></td>
			<td><form:input path="customer_phone" id="customer_phone"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="resp_url_back">resp_url_back</form:label></td>
			<td><form:input path="resp_url_back" id="resp_url_back"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="resp_url_cancel">resp_url_cancel</form:label></td>
			<td><form:input path="resp_url_cancel" id="resp_url_cancel"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="resp_url_confirm">resp_url_confirm</form:label></td>
			<td><form:input path="resp_url_confirm" id="resp_url_confirm"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="expired_date">expired_date</form:label></td>
			<td><form:input path="expired_date" id="expired_date"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="message_slip1">message_slip1</form:label></td>
			<td><form:input path="message_slip1" id="message_slip1"
					cssClass="input-text" /></td>
		</tr>
		<tr>
			<td><form:label path="message_slip2">message_slip2</form:label></td>
			<td><form:input path="message_slip2" id="message_slip2"
					cssClass="input-text" /></td>
		</tr>
	</table>


	<div class="headline">
		<a href="#" class="active">Cash Payment</a>
	</div>
	<div class="box">
		<div class="cash_payment_content">
			<table style="width: 100%">
				<tr>
					<td class="column-left">inv:</td>
					<td><c:out value="${outboundMessageLogBean.inv}" /></td>
				</tr>
				<tr>
					<td class="column-left">amt:</td>
					<td><c:out value="${outboundMessageLogBean.amt}" /></td>
				</tr>
<!-- 				<tr> -->
<!-- 					<td class="column-left">Customer Name:</td> -->
<%-- 					<td><c:out value="${outboundMessageLogBean.customer_name}" /></td> --%>
<!-- 				</tr> -->
<!-- 				<tr> -->
<!-- 					<td class="column-left">Email:</td> -->
<%-- 					<td><c:out value="${outboundMessageLogBean.customer_email}" /></td> --%>
<!-- 				</tr> -->
<!-- 				<tr> -->
<!-- 					<td class="column-left">Phone:</td> -->
<%-- 					<td><c:out value="${outboundMessageLogBean.customer_phone}" /></td> --%>
<!-- 				</tr> -->
<!-- 				<tr> -->
<!-- 					<td class="column-left">&nbsp;</td> -->
<!-- 					<td>PAYATALL</td> -->
<!-- 				</tr> -->
<!-- 				<tr> -->
<!-- 					<td class="column-left vertical-align-top">Note to Merchant:</td> -->
<!-- 					<td>Note to Merchant Test</td> -->
<!-- 				</tr> -->
			</table>
		</div>
		<hr>
		<div class="cash_payment_footer">
			<div class="cash_payment_button text-center">
				<input type="submit" value="Submit Payment"> 
				<c:if test="${from_action == 'customerInfo'}">
				<input type="reset" value="Back" onclick="javascript:window.history.back();">
				</c:if>
			</div>
		</div>
	</div>



</form:form>
<script type="text/javascript">
	/*
	window.onload = function() {
		setInterval(document.formPayatAll.submit(), 8000); //8000 ms = 8 seconds
	};
	 */
</script>